<?php
return array(
    // GLOBAL
    'ENV'             => $_ENV['APP_ENV'], // DEV, LIVE, STAGING
    'LANG'            => 'en_US',
    'TIMEZONE'        => 'Etc/GMT-8',
    'TIME_OFFSET'     => 0,
    'JS_VER'          => 1,
    'CSS_VER'         => 1,
    'PHP_VER'         => 'master',
    'VERSION'         => $_ENV['ONLINE_VER'], // game version
    'WEB_HOST'        => $_ENV['WEB_HOST'],
    'CDN_HOST'        => $_ENV['CDN_HOST'],
    'PLATFORM'        => 'shinezone',
    'CANVAS_URL'      => '',
    'CANVAS_NAME'     => '',
    'GOOGLE_ID'       => '',
    'GAME_ID'         => 1113,
    'GAME_IDS'        => [1113],
    'CP_GAME_ID'      => 1069,
    'PLATFORM_ON'     => true,
    // SWITCHES
    'MAINTENANCE'                   => false, // whether close the game
    // OUTPUT && INPUT
    'API_COMPRESS'                  => false, // request & response contents will be compressed by "gzcompress"
    'BASE64_ENCODE'                 => false, // request & response contents will be encode by "base64"
    // ERROR && EXCEPTION
    'LOG_ERROR_TRACE'               => $_ENV['LOG_ERROR_TRACE'], // whether log error trace
    'LOG_EXCEPTION_TRACE'           => $_ENV['LOG_EXCEPTION_TRACE'], // whether log exception trace
    // RESPONSE
    'NOTIFY_PERSIST_RESULT'         => true,  // notify the persist result to client, in "UPDATE"
    'RESPONSE_JSON_OPTIONS'         => 304,    // JSON_FORCE_OBJECT => 16 | JSON_OBJECT_AS_ARRAY => 1 ,JSON_NUMERIC_CHECK => 32
    'PERSIST_RESULT_FORCE_OBJECT'   => false, // which orm will force change to object
    // API_REPEAT
    'API_REPEAT_CHECK'              => false, // whether open api repeat function
    'API_REPEAT_LIMIT'              => 0,     // api repeat limit
    'API_REPEAT_EXPIRE'             => 0,     // api repeat expire
    'API_SIGN_SECRET'               => '',    // api sign
    'API_PERSIST_SINobE'            => true,  // 是否每个协议完成后立即persist 数据
    // WEB_ROOT
    'WEB_ROOT'  => dirname(dirname(dirname(dirname(__DIR__)))), // absolute path
    // FRAMEWORK
    'FRAMEWORK_ROOT'  => dirname(dirname(dirname(dirname(__DIR__)))) . '/framework', // absolute path
    'FRAMEWORK_VER'   => '1.1.0.6',
    // MODULES
    'MODULE_ROOT'     => dirname(dirname(dirname(dirname(__DIR__)))) . '/modules', // absolute path
    'MODULE_VERS'     => array(
        // moduleName => version,
        'module_sns'            => '1.3.0.2',
        'module_payment'        => '1.3.0.5',
        'module_profile'        => '1.2.0.1',
        'module_statistics'     => '1.0.1.8',
        'module_item'           => '1.1.0.7',
        'module_gm'             => '1.1.0.0',
        'module_privilege'      => '1.1.0.1',
    ),
    // IP WHITE LIST
    'IP_WHITE_LIST' => array(
        // ipAddress, ipAddress, ...
    ),
    // PERSIST RESULT FILTER
    'PERSIST_RESULT_FILTER' => array(
        // moduleName, moduleName, ...
    ),
    // GLOBAL SETTING
    'SYSTEM_API'            => array('GmTools.Test'),
    'GM_OPEN'               => $_ENV['GM_OPEN'],        // GM工具是否开启
    'STOP_SERVER'           => $_ENV['STOP_SERVER'],       // 是否可停服
    'VERIFY_USER_INFO'      => $_ENV['VERIFY_USER_INFO'],       // 验证玩家信息开关
    'UNIVERSAL_TOKEN'       => $_ENV['UNIVERSAL_TOKEN'],        // 万能Token开关
    'ABLE_ROBOT_LOGIN'      => $_ENV['ABLE_ROBOT_LOGIN'],        // 允许机器人登陆
    'USERCENTOR_OPEN'       => $_ENV['USERCENTOR_OPEN'],       // 是否使用数据中心数据
    'IS_NEED_REPLACE'       => $_ENV['IS_NEED_REPLACE'],       // 是否需要脏字正则匹配
    'IS_VERIFY_DELTA'       => $_ENV['IS_VERIFY_DELTA'],         // 是否需要验证容错时间
    'IS_MULTI_VERSION'      => $_ENV['IS_MULTI_VERSION'],        // 是否支持动态匹配多版本
    'VERSION_SHARD_WEIGHT'  => array(
        //不同版本的权重  version => probability
    ),
);
